const fs=require('fs')
fs.writeFile('./output.txt','Hello, Node.js!',err=>{
    if(err!=null){
        console.log(err);
        return
    }
    console.log('文件写入成功');
})